<?php

class IndexAction extends Action {
	public function _initialize() {
		import('PassportService');
		
	}
	public function index() {
		header("Content-type:text/html;charset=utf-8");
		$PassportService  = new PassportService();
		$_POST['username'] = 'jiangfeiyu';
		$_POST['nickname'] = '江飞';
		$_POST['password'] = '32398574';
		$res = $PassportService->register('jiangfeiyu','江飞','32398574','');
		dump($res);
	}
}